package com.SyDeck.sdRPGmod;

import com.SyDeck.sdRPGmod.Interface.pluginProperties;
import java.io.File;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

/**
 *
 * @author Deck & Sammy
 */
public class sdRPGMod extends JavaPlugin {

    private static final String DIR = "plugins/RPGmod/";

    public static void main(String[] args) {
        //Bug track only
    }

    public void onDisable() {
        PluginDescriptionFile pdfFile = this.getDescription();
        System.out.println(pdfFile.getName() + "disabled, goodbye wold");
    }

    public void onEnable() {
        PluginDescriptionFile pdfFile = this.getDescription();
        PluginManager pm = getServer().getPluginManager();
        new File(DIR).mkdirs();
        System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
        pluginProperties.loadCurrencyProps();
        getCommand("day").setExecutor(new dayCmd(this));
    }
}
